import { http } from '@/utils/http'
import type { BannerItem } from '@/types/global'
import type { CategoryTopItem } from '@/types/category'
/**获取商品分类轮播图 */
export const queryCategoryBanner = (distributionSite = 1) => {
  return http<BannerItem[]>({
    method: 'GET',
    url: '/home/banner',
    data: {
      distributionSite,
    },
  })
}

/** 获取商品分类一节列表数据 */
export const queryCategoryTopData = () => {
  return http<CategoryTopItem[]>({
    method: 'GET',
    url: '/category/top',
  })
}
